package com.mtzqc.common.service.impl

import com.blankj.utilcode.util.ToastUtils
import com.didi.drouter.annotation.Service
import com.didi.drouter.api.Extend
import com.mtzqc.common.service.ToastService

@Service(function = [ToastService::class], cache = Extend.Cache.SINGLETON)
class ToastImpl : ToastService {
    override fun toast(resId: Int) {
        ToastUtils.showShort(resId)
    }

    override fun toast(sequence: CharSequence) {
        ToastUtils.showShort(sequence)
    }


    override fun toastLong(sequence: CharSequence) {
        ToastUtils.showLong(sequence)
    }

    override fun toastLong(resId: Int) {
        ToastUtils.showLong(resId)
    }

}